<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<base href="__ROOT__/">
<title>{$projectname}</title>
<link href="./Public/Css/app.css" rel="stylesheet">
</head>

<body>
	<div id="app">
		<nav>
			 {$topbar}
		</nav>
		<hr style="margin: 3px 0px 0px;">
		<div style="margin: 20px 150px 0px;">
			<div>
				<a href="{$url}mb_Agent" class="router-link-active">
					<button	class="func func-activate">代理商列表</button>
				</a> 
				<a href="{$url}mb_AgentSetting" class="">
					<button	class="func">代理商配置</button>
				</a>
			</div>
			<div style="margin-bottom: 5px;"></div>
			<div>
				<table border="1" width="100%" class="grid">
					<tr class="tbh">
						<th width="60" style="text-align: center;">AID</th>
						<th align="left" width="100">代理商</th>
						<th align="left" width="100">邀请码</th>
						<th align="left" width="80">登录账号</th>
						<th align="left" width="60">允许登录</th>
						<th align="left" width="60">账目显示</th>
						<th align="left" width="60">上分功能</th>
						<th align="left" width="80">剩余上分额度</th>
						<th align="left" width="150">加盟时间</th>
						<th>操作</th>
					</tr>
					{$table}
				</table>
				<button><a href="{$url}mb_Agent">刷新</a> </button>
				<button><a href="{$url}mb_AgentAdd">新增</a></button>
				<br> <br>
				
				<div>
					<div>
						<script src="./Public/Js/Common.js"></script>
						<form action="{$url}mb_SaveAgentReset?name={$name}&handle=4" method="post" >
							<table border="1" width="100%" class="grid">
								<tr>
									<th width="100" class="tbt">代理商名称：</th>
									<td><input type="text" id="nick" name="nick" value="{$nick}">*</td>
								</tr>
								<tr>
									<th width="100" class="tbt">邀请码：</th>
									<td><input type="text" id="code" name="code" placeholder="{$code}" disabled="disabled" >*</td>
								</tr>
								<tr>
									<th width="100" class="tbt">登录账号：</th>
									<td><input type="text" id="name" name="name" placeholder="{$name}" disabled="disabled"></td>
								</tr>
								<tr>
									<th width="100" class="tbt">登录密码：</th>
									<td><input type="text" id="pass" name="pass" placeholder="******"></td>
								</tr>
								<tr>
									<th width="120px" class="tbt">代理商登录：</th>
									<td>
										 <input id="yxkg1" name="status" type="radio" value="0" {$canlogin_0}>允许登录
										 <input id="yxkg2" name="status" type="radio" value="2" {$canlogin_1}>禁止登录
									</td>
								</tr>
								<tr>
									<th width="120px" class="tbt">代理商账目：</th>
									<td>
										<input id="zc1" name="isaccounts" type="radio" value="0" {$showaccount_0}>允许显示
										<input id="zc2" name="isaccounts" type="radio" value="1" {$showaccount_1}>禁止显示
											&nbsp;&nbsp;&nbsp;
										<code style="color: rgb(102, 102, 102); font-style: italic;">是否显示"代理商账目"、"玩家积分"、"上下分明细"</code>
									</td>
								</tr>
								<tr>
									<th width="120px" class="tbt">代理商上分：</th>
									<td>
										<input id="aa1" name="ispoints" type="radio" value="0" {$canpoints_0}>允许上分 
										<input id="aa2" name="ispoints" type="radio" value="1" {$canpoints_1}>禁止上分 
											&nbsp;&nbsp;&nbsp;
										<code style="color: rgb(102, 102, 102); font-style: italic;"></code></td>
								</tr>
								<tr>
									<th width="100" class="tbt">手机号：</th>
									<td><input type="text" name="phone" value="{$phone}"></td>
								</tr>
								<tr>
									<th class="tbt">备注：</th>
									<td><input type="text" name="remark" placeholder="无"></td>
								</tr>
								<tr>
									<th></th>
									<td><button type="submit">保存</button></td>
								</tr>
							</table>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>

